<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
  <table width="270" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="5"><img src="images/pblog01.jpg" width="5" height="42" /></td>
                            <td background="images/pblog13.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="50"><img src="images/bl1.jpg" width="34" height="42" alt="" /></td>
                                <td><h2>ประกันภัยรถยนต์</h2></td>
                                </tr>
                              </table></td>
                            <td width="4"><img src="images/pblog12.jpg" width="4" height="42" alt="" /></td>
                            </tr>
                          </table></td>
                        </tr>
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                            <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                <td class="menu"><a href="insure1.php">สอบถามราคา ประกันชั้น1</a></td>
                                </tr>
                              </table></td>
                            <td width="15" bgcolor="#212121">&nbsp;</td>
                            </tr>
                          </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure1-damage.php">ประกันชั้น1 (มีความเสียหายส่วนแรก)</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure3.php">ประกันชั้น3 ไม่มีพรบ.</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure3_2.php">ประกันชั้น3 มีพรบ.</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure3plus.php">ประกันชั้น3พลัส</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure3plus-no-damage.php">ประกันชั้น3พลัส (ไม่มีส่วนแรก)</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure2plus.php">ประกันชั้น2พลัส</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure2plus-no-damage.php">ประกันชั้น2พลัส (ไม่มีส่วนแรก)</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="prb.php">ประกัน พรบ.</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table></td>
                        </tr>
                      <tr>
                        <td bgcolor="#212121">&nbsp;</td>
                        </tr>
                      </table>
                      <table width="270" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="5"><img src="images/pblog01.jpg" width="5" height="42" /></td>
                              <td background="images/pblog13.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="50"><img src="images/bl3.jpg" width="34" height="42" alt="" /></td>
                                  <td><h2>ประกันภัยอื่น ๆ</h2></td>
                                  </tr>
                                </table></td>
                              <td width="4"><img src="images/pblog12.jpg" width="4" height="42" alt="" /></td>
                              </tr>
                            </table></td>
                          </tr>
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="insure-fire.php">ประกันอัคคีภัย</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="insure-accident.php">ประกันอุบัติเหตุ</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="insure-health.php">ประกันสุขภาพ</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="insure-miscellaneous.php">ประกันภัยเบ็ดเตล็ด</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table></td>
                          </tr>
                        <tr>
                          <td bgcolor="#212121">&nbsp;</td>
                          </tr>
                        </table>
                      <table width="270" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="5"><img src="images/pblog01.jpg" width="5" height="42" /></td>
                              <td background="images/pblog13.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="50"><img src="images/bl4.jpg" width="34" height="42" alt="" /></td>
                                  <td><h2>สมาชิก / นักขาย</h2></td>
                                  </tr>
                                </table></td>
                              <td width="4"><img src="images/pblog12.jpg" width="4" height="42" alt="" /></td>
                              </tr>
                            </table></td>
                          </tr>
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121">
                              <?php
							  	if($_SESSION['login_status']==TRUE)
								{
									if($_SESSION['center']==TRUE){
										$level = "ศูนย์";
										$url = "center.php";
									}else{
										$level = $rs_log['level'];
										$url = "member.php";	
									}
									echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
                                  <tr>
                                    <td colspan=\"2\" align=\"center\" class=\"login_head\">ข้อมูลสมาชิก</td>
                                    </tr>
                                  <tr>
                                    <td width=\"50%\" height=\"25\" align=\"right\" class=\"login_subject\">ชื่อผู้ใช้ :</td>
                                    <td width=\"50%\" class=\"login_detail\">".$rs_log['username']."</td>
                                </tr>
                                  <tr>
                                    <td height=\"25\" align=\"right\" class=\"login_subject\">ชื่อ :</td>
                                    <td class=\"login_detail\">".$rs_log['name']."</td>
                                </tr>
                                  <tr>
                                    <td height=\"25\" align=\"right\" class=\"login_subject\">ระดับ :</td>
                                    <td class=\"login_detail\">".$level."</td>
                                </tr>
								  <tr>
                                    <td height=\"25\"  align=\"center\"><input type=\"button\" onclick=\"window.location='".$url."'\" value=\"หน้าสมาชิก\" /></td>
									<td height=\"25\"  align=\"center\"><input type=\"button\" onclick=\"window.location='membership_logout.php'\" value=\"ออกจากระบบ\" /></td>
                                  </tr>
                                  </table>";
								}else{
								?>
                                 <form id="form1" name="form1" method="post" action="checklogin.php">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td class="text4">Username :</td>
                                    <td height="25">&nbsp;</td>
                                    <td><input type="text" name="username" id="username" /></td>
                                  </tr>
                                  <tr>
                                    <td class="text4">Password :</td>
                                    <td height="25">&nbsp;</td>
                                    <td><input type="password" name="password" id="password" /></td>
                                  </tr>
                                  <tr>
                                    <td height="25" colspan="3" align="center" class="text4">
                                      <label>
                                        <input name="center" type="radio" id="RadioGroup1_0" value="0" checked="checked" />
                                        สมาชิก</label>
                                      
                                      <label>
                                        <input type="radio" name="center" value="1" id="RadioGroup1_1" />
                                        ศูนย์</label>
                                     
                                    </td>
                                  </tr>
                                  <tr>
                                    <td>&nbsp;</td>
                                    <td height="25">&nbsp;</td>
                                    <td valign="bottom"><input type="submit" name="button" id="button" value="เข้าสู่ระบบ" /></td>
                                  </tr>
                                  <tr>
                                    <td height="25" colspan="3" align="center"><a href="register.php" class="login_detail">สมัครสมาชิกใหม่</a>&nbsp;&nbsp;&nbsp;<a href="forgot.php" class="login_detail">ลืมรหัสผ่าน</a></td>
                                  </tr>
                                
                                  </table>
                              </form>
                                <?php
									
								}
							  ?>                             
                              </td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table></td>
                          </tr>
                        <tr>
                          <td bgcolor="#212121">&nbsp;</td>
                          </tr>
                        </table>
                      <table width="270" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="5"><img src="images/pblog01.jpg" width="5" height="42" /></td>
                              <td background="images/pblog13.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="50"><img src="images/bl5.jpg" width="34" height="42" alt="" /></td>
                                  <td><h2>บริการต่างๆ</h2></td>
                                  </tr>
                                </table></td>
                              <td width="4"><img src="images/pblog12.jpg" width="4" height="42" alt="" /></td>
                              </tr>
                            </table></td>
                          </tr>
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                              <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                  <td class="menu"><a href="download.php">DOWNLOAD เอกสารต่างๆ</a></td>
                                  </tr>
                                </table></td>
                              <td width="15" bgcolor="#212121">&nbsp;</td>
                              </tr>
                            </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="ex-pic-car.php">ตัวอย่างการถ่ายรูป</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="cradle.php">ตรวจสอบอู่ประกัน</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="faq.php">คำถามที่พบบ่อย</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="payment.php">แจ้งชำระเงิน</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="ems.php">ตรวจสถานะการจัดส่ง EMS</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="15" background="images/pblog14.jpg" bgcolor="#212121">&nbsp;</td>
                                <td bgcolor="#212121" background="images/pblog14.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="30"><img src="images/bl2.jpg" width="19" height="33" alt="" /></td>
                                    <td class="menu"><a href="desire.php">คลิ๊ก ดูบริการเสริมก่อนตัดสินใจ</a></td>
                                    </tr>
                                  </table></td>
                                <td width="15" bgcolor="#212121">&nbsp;</td>
                                </tr>
                              </table></td>
                          </tr>
                        <tr>
                          <td bgcolor="#212121">&nbsp;</td>
                          </tr>
                        </table>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="center" bgcolor="#212121"><a href="http://eservice.oic.or.th/eService/Search/Broker/JuristicAllow.aspx" target="_blank"><img src="images/kpp.jpg" alt="" width="237" height="127" border="0" /></a></td>
                          </tr>
                        <tr>
                          <td align="center" bgcolor="#212121">&nbsp;</td>
                          </tr>
                        <tr>
                          <td bgcolor="#212121" class="text7"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="20">&nbsp;</td>
                              <td>ตรวจสอบความถูกต้องของใบอนุญาต<br />
นายหน้าประกันภัยได้ที่<br />
สายด่วน กรมการประกันภัย โทร 1186</td>
                            </tr>
                          </table></td>
                          </tr>
                        <tr>
                          <td bgcolor="#212121" class="text7">&nbsp;</td>
                          </tr>
                        </table>